class DateTimeModel {
  bool _success;
  DateTimeData _data;

  DateTimeModel({bool success, DateTimeData data}) {
    this._success = success;
    this._data = data;
  }

  bool get success => _success;
  set success(bool success) => _success = success;
  DateTimeData get data => _data;
  set data(DateTimeData data) => _data = data;

  DateTimeModel.fromJson(Map<String, dynamic> json) {
    _success = json['success'];
    _data = json['data'] != null ? new DateTimeData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this._success;
    if (this._data != null) {
      data['data'] = this._data.toJson();
    }
    return data;
  }
}

class DateTimeData {
  int _datetime;

  DateTimeData({int datetime}) {
    this._datetime = datetime;
  }

  int get datetime => _datetime;
  set datetime(int datetime) => _datetime = datetime;

  DateTimeData.fromJson(Map<String, dynamic> json) {
    _datetime = json['datetime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['datetime'] = this._datetime;
    return data;
  }
}
